﻿using _14.访问者模式.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _14.访问者模式
{
    internal class Client
    {
        public void Start()
        {
            Home home = new Home();
            home.Add(new Dog());
            home.Add(new Cat());

            Master master = new Master();
            home.Start(master);

            home.Add(new Fish());
            Friend friend = new Friend();
            home.Start(friend);

        }
    }
}
